﻿using Lsk.Business;
using Lsk.Business.DTO;
using Lsk.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace lsk.Web.Api
{
    public class PropertyDirectoryController : ApiController
    {
        [HttpGet]
        public IEnumerable<GetPropertyDirectory_Result> GetPropertyDirectory()
        {
            PropertyDirectory propDir = new PropertyDirectory();
            
            return propDir.GetPropertyDirectory();
        }

        [HttpGet]
        public PropertyDirectoryMessage GetPropertyDirectory(string id)
        {
            PropertyDirectory newDirectory = new PropertyDirectory();
            return newDirectory.GetPropertyDirectory(id);
        }
    }
}